﻿// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using Microsoft.EntityFrameworkCore;

namespace GCT.Foundation.EntityFrameworkCore
{
    public class FoundationTemplateDbContext : GCTSharedDbContext<FoundationTemplateDbContext>
    {
        public FoundationTemplateDbContext(DbContextOptions<FoundationTemplateDbContext> options) : base(options)
        {
        }

        public override void ModelCreating(ModelBuilder modelBuilder)
        {
            base.ModelCreating(modelBuilder);
            modelBuilder.ConfigureGCTShared();

            modelBuilder.ConfigureFoundationTemplate();
            // 可选
            modelBuilder.UseCollation("Chinese_PRC_CI_AS");

        }
    }
}
